<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Grupo12daturma2MIEIC4: Referência à classe Consultas</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Localizar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Grupo12daturma2MIEIC4&#160;<span id="projectnumber">1.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;principal</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Ficheiros</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Localizar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Lista&#160;de&#160;componentes</span></a></li>
      <li><a href="classes.html"><span>Índice&#160;dos&#160;componentes</span></a></li>
      <li><a href="functions.html"><span>Componentes&#160;membro</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_consultas.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Membros públicos</a> &#124;
<a href="#pri-attribs">Atributos Privados</a>  </div>
  <div class="headertitle">
<div class="title">Referência à classe Consultas</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Consultas" -->
<p>Classe container para as consultas individuais.  
 <a href="class_consultas.html#details">Mais...</a></p>

<p><code>#include &lt;<a class="el" href="_consultas_8h_source.html">Consultas.h</a>&gt;</code></p>

<p><a href="class_consultas-members.html">Mostrar lista completa dos membros</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Membros públicos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_consultas.html#ac14d2f53b651bc7e0fb3554f7aa03a42">Consultas</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_consultas.html#ab9894433e06371b4fb44f6dc125f5e58">Consultas</a> (string linha, const string separadores=&quot;;&quot;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor vazio.  <a href="#ab9894433e06371b4fb44f6dc125f5e58"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_consultas.html#a81f001aab6f41f4aca3eef6e33a337eb">~Consultas</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor que permite realizar a criação do objecto da linha de registo em ficheiro de arquivo.  <a href="#a81f001aab6f41f4aca3eef6e33a337eb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_consultas.html#a9aa8091386acb15856e78f4e7dd1fa44">qtdeConsultas</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destrutor.  <a href="#a9aa8091386acb15856e78f4e7dd1fa44"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_consultas.html#a52da8a0d946719ab59de277ce42309ab">guardar</a> (const string separadores)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Quantidade de consultas do dia.  <a href="#a52da8a0d946719ab59de277ce42309ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_consulta.html">Consulta</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_consultas.html#a1c40562c7da7b7774c1ad6ff3a528e93">consultaPorIndice</a> (int idx)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Devolve uma string que permite guardar o objecto num ficheiro de arquivo.  <a href="#a1c40562c7da7b7774c1ad6ff3a528e93"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_consultas.html#ad98c88e4c536409b10045376570b2326">novaConsulta</a> (string linha)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A partir do nº de conslta devolve o apontador para a consulta.  <a href="#ad98c88e4c536409b10045376570b2326"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Atributos Privados</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">vector&lt; <a class="el" href="class_consulta.html">Consulta</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_consultas.html#a68febc96f8278140a2052d8e83048f0d">consultasDoDia</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Regista uma nova consulta no dia. Cria um objecto <a class="el" href="class_consulta.html" title="Definição de uma consulta individual dentro do contexto da aplicação.">Consulta</a> e guarda o seu apontador no vector respectivo.  <a href="#a68febc96f8278140a2052d8e83048f0d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_data_cal.html">DataCal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_consultas.html#ab84711f2539274e2dc57bd9efeebbbcc">dia</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Vector que guarda as consultas individuais de um dia.  <a href="#ab84711f2539274e2dc57bd9efeebbbcc"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Descrição detalhada</h2>
<div class="textblock"><p>Classe container para as consultas individuais. </p>
<p>ESta classe sere para conter as consultas de um dia. </p>

<p>Definido na linha <a class="el" href="_consultas_8h_source.html#l00026">26</a> do ficheiro <a class="el" href="_consultas_8h_source.html">Consultas.h</a>.</p>
</div><hr/><h2>Documentação dos Construtores &amp; Destrutor</h2>
<a class="anchor" id="ac14d2f53b651bc7e0fb3554f7aa03a42"></a><!-- doxytag: member="Consultas::Consultas" ref="ac14d2f53b651bc7e0fb3554f7aa03a42" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Consultas::Consultas </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definido na linha <a class="el" href="_consultas_8cpp_source.html#l00016">16</a> do ficheiro <a class="el" href="_consultas_8cpp_source.html">Consultas.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab9894433e06371b4fb44f6dc125f5e58"></a><!-- doxytag: member="Consultas::Consultas" ref="ab9894433e06371b4fb44f6dc125f5e58" args="(string linha, const string separadores=&quot;;&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Consultas::Consultas </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>linha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string&#160;</td>
          <td class="paramname"><em>separadores</em> = <code>&quot;;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construtor vazio. </p>

<p>Definido na linha <a class="el" href="_consultas_8cpp_source.html#l00020">20</a> do ficheiro <a class="el" href="_consultas_8cpp_source.html">Consultas.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a81f001aab6f41f4aca3eef6e33a337eb"></a><!-- doxytag: member="Consultas::~Consultas" ref="a81f001aab6f41f4aca3eef6e33a337eb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Consultas::~Consultas </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construtor que permite realizar a criação do objecto da linha de registo em ficheiro de arquivo. </p>

<p>Definido na linha <a class="el" href="_consultas_8cpp_source.html#l00024">24</a> do ficheiro <a class="el" href="_consultas_8cpp_source.html">Consultas.cpp</a>.</p>

</div>
</div>
<hr/><h2>Documentação dos métodos</h2>
<a class="anchor" id="a1c40562c7da7b7774c1ad6ff3a528e93"></a><!-- doxytag: member="Consultas::consultaPorIndice" ref="a1c40562c7da7b7774c1ad6ff3a528e93" args="(int idx)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_consulta.html">Consulta</a> * Consultas::consultaPorIndice </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Devolve uma string que permite guardar o objecto num ficheiro de arquivo. </p>

<p>Definido na linha <a class="el" href="_consultas_8cpp_source.html#l00040">40</a> do ficheiro <a class="el" href="_consultas_8cpp_source.html">Consultas.cpp</a>.</p>

<p>Referências <a class="el" href="_consultas_8h_source.html#l00038">consultasDoDia</a>.</p>

</div>
</div>
<a class="anchor" id="a52da8a0d946719ab59de277ce42309ab"></a><!-- doxytag: member="Consultas::guardar" ref="a52da8a0d946719ab59de277ce42309ab" args="(const string separadores)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string Consultas::guardar </td>
          <td>(</td>
          <td class="paramtype">const string&#160;</td>
          <td class="paramname"><em>separadores</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Quantidade de consultas do dia. </p>

<p>Definido na linha <a class="el" href="_consultas_8cpp_source.html#l00033">33</a> do ficheiro <a class="el" href="_consultas_8cpp_source.html">Consultas.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad98c88e4c536409b10045376570b2326"></a><!-- doxytag: member="Consultas::novaConsulta" ref="ad98c88e4c536409b10045376570b2326" args="(string linha)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Consultas::novaConsulta </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>linha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A partir do nº de conslta devolve o apontador para a consulta. </p>

<p>Definido na linha <a class="el" href="_consultas_8cpp_source.html#l00045">45</a> do ficheiro <a class="el" href="_consultas_8cpp_source.html">Consultas.cpp</a>.</p>

<p>Referências <a class="el" href="_consultas_8h_source.html#l00038">consultasDoDia</a>.</p>

</div>
</div>
<a class="anchor" id="a9aa8091386acb15856e78f4e7dd1fa44"></a><!-- doxytag: member="Consultas::qtdeConsultas" ref="a9aa8091386acb15856e78f4e7dd1fa44" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Consultas::qtdeConsultas </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destrutor. </p>

<p>Definido na linha <a class="el" href="_consultas_8cpp_source.html#l00028">28</a> do ficheiro <a class="el" href="_consultas_8cpp_source.html">Consultas.cpp</a>.</p>

<p>Referências <a class="el" href="_consultas_8h_source.html#l00038">consultasDoDia</a>.</p>

</div>
</div>
<hr/><h2>Documentação dos dados membro</h2>
<a class="anchor" id="a68febc96f8278140a2052d8e83048f0d"></a><!-- doxytag: member="Consultas::consultasDoDia" ref="a68febc96f8278140a2052d8e83048f0d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt;<a class="el" href="class_consulta.html">Consulta</a>*&gt; <a class="el" href="class_consultas.html#a68febc96f8278140a2052d8e83048f0d">Consultas::consultasDoDia</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Regista uma nova consulta no dia. Cria um objecto <a class="el" href="class_consulta.html" title="Definição de uma consulta individual dentro do contexto da aplicação.">Consulta</a> e guarda o seu apontador no vector respectivo. </p>

<p>Definido na linha <a class="el" href="_consultas_8h_source.html#l00038">38</a> do ficheiro <a class="el" href="_consultas_8h_source.html">Consultas.h</a>.</p>

<p>Referenciado por <a class="el" href="_consultas_8cpp_source.html#l00040">consultaPorIndice()</a>, <a class="el" href="_consultas_8cpp_source.html#l00045">novaConsulta()</a> e <a class="el" href="_consultas_8cpp_source.html#l00028">qtdeConsultas()</a>.</p>

</div>
</div>
<a class="anchor" id="ab84711f2539274e2dc57bd9efeebbbcc"></a><!-- doxytag: member="Consultas::dia" ref="ab84711f2539274e2dc57bd9efeebbbcc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_data_cal.html">DataCal</a> <a class="el" href="class_consultas.html#ab84711f2539274e2dc57bd9efeebbbcc">Consultas::dia</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Vector que guarda as consultas individuais de um dia. </p>

<p>Definido na linha <a class="el" href="_consultas_8h_source.html#l00039">39</a> do ficheiro <a class="el" href="_consultas_8h_source.html">Consultas.h</a>.</p>

</div>
</div>
<hr/>A documentação para esta classe foi gerada a partir dos seguintes ficheiros:<ul>
<li>C:/Users/Paulo/Documents/FEUP/EclipseWorkSpace/calgrafos/src/<a class="el" href="_consultas_8h_source.html">Consultas.h</a></li>
<li>C:/Users/Paulo/Documents/FEUP/EclipseWorkSpace/calgrafos/src/<a class="el" href="_consultas_8cpp_source.html">Consultas.cpp</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_consultas.html">Consultas</a>      </li>
      <li class="footer">Gerado em Fri May 13 2011 02:00:26 para Grupo12daturma2MIEIC4 por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tudo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Ficheiros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Amigos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
